package com.xsw.framework.security.minilogin.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface MiniLoginUserDetailsService {
    /**
     * @param mobile 手机号
     * @param param  额外参数
     * @return
     * @throws UsernameNotFoundException
     */
    UserDetails loadUserByUsername(String mobile, Object param) throws UsernameNotFoundException;
}